﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="admin_finance_customerinfoeidotr" Codefile="customerinfoeidotr.aspx.cs" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
    <title>Customer Manage: <%=PageTitle %></title>
    <base target="_self" />

    <script type="text/javascript">
    var LOCID_POPUP_MENU_LABEL ="{0}菜单";
    var LOCID_UNRECOGNIZE_DOTC="{0} 不是可识别的对象类型。";
    var LOCID_COPY_SHORTCUT_ERROR="无法将此快捷方式复制到剪贴板。";
    var LOCID_ENTER_VALID_NUMBER ="必须输入有效的数字。";

    //Lookup(global、lookup)
    var LOCID_LU_SELECT_VALUE_FOR="单击以选择{0}的值。";
    var LOCID_LU_SELECT_VALUE="单击以选择值。";
    var LOCID_LU_LOOKUPUNRESOLVEDTOOLTIP="未找到任何匹配项";
    var LOCID_LU_LOOKUPAMBIGUOUSTOOLTIP="已找到多个匹配项";
    var LOCID_UI_DIR="LTR";
    var LOCID_DIALOG_OFFSET_WIDTH=0;
    var LOCID_DIALOG_OFFSET_HEIGHT=0;
    var LOCID_ERROR_DIALOG_WIDTH=550;
    var LOCID_ERROR_DIALOG_HEIGHT=260;
    var LOCID_CONTRACTS_TDIALOG_WIDTH=350;
    var LOCID_CONTRACTS_TDIALOG_HEIGHT =350;
    var LOCID_LOOKUPSTYLE_NOT_SET="未知的查找样式。请检查属性 XML 的设置是否正确。";
    var LOCID_LOOKUPAMBIGUOUSTITLE="已找到多个匹配项:";
    var LOCID_LOOKMORERECORDS_AMBIGUOUS="查找更多记录";
    var DEFAULT_USER_NUMBER_FORMAT_MASK="\x23,\x23\x230.\x2a\x3b\x7e\x23,\x23\x230.\x2a";
    var USER_NUMBER_FORMAT_MASK="\x23,\x23\x230.\x2a\x3b\x7e\x23,\x23\x230.\x2a";

    //Calendar Control -->Date
    var LOCID_SHOW_WEEK_CAL_WIDTH="170";
    var LOCID_NO_WEEK_CAL_WIDTH="150";
    var LOCID_CALENDAR_HEIGHT="163";
    var USER_SHOW_WEEK_NUMBER=false;
    var USER_IS_GREGORIANCALENDAR=true;
    var ORG_DATE_START_DAY ="0";
    var USER_DATE_SEPARATOR="-";
    var USER_DATE_FORMATSTRING="yyyy/M/d";
    var LOCID_ALERT_ENTER_VALID_DATE="指定的日期格式无效或日期超出了有效范围。请按以下格式输入有效的日期: {0}";
    var USER_DATE_FORMATTED_FORMATSTRING="yyyy/M/d";
    var LOCID_YEAR_DISPLAYFORMAT="{0}{1} 年";
    var LOCID_ARRAY_SHORT_MONTHS="1 月,2 月,3 月,4 月,5 月,6 月,7 月,8 月,9 月,10 月,11 月,12 月";
    var LOCID_ARRAY_LONG_MONTHS="一月,二月,三月,四月,五月,六月,七月,八月,九月,十月,十一月,十二月,";
    var LOCID_ARRAY_SHORTEST_DAYS="日,一,二,三,四,五,六";
    var LOCID_ARRAY_LONG_DAYS ="星期日,星期一,星期二,星期三,星期四,星期五,星期六";
    var LOCID_SHOW_WEEK_CAL_WIDTH="170";
    var LOCID_NO_WEEK_CAL_WIDTH="150";
    var LOCID_CALENDAR_HEIGHT="163";
    var LOCID_TODAY_DATE_FORMAT_MASK="今天:{0}";
    var LOCID_ALERT_CALDATE_FAIL="获取日期时出错";
    var LOCID_ALERT_ACTUAL_DATE_FAIL="获取日期时出错";
    var LOCID_DTM_BLANK_DATE_ERROR="必须提供日期。";

    //action
    var LOCID_NO_ASTERISK="搜索字段不得包含星号 (*) 字符。请移除任何使用过的字符，然后重试。";

    //Grid
    var LOCID_GRID_SELECT_ALL_KEY = "A";
    
            //Grid
    var LOCID_LOADING_GRID_DATA ="Loading Data...";
    var LOCID_REFRESH_GRID_CANCELLED ="刷新已取消。";
    var LOCID_LOADING_GRID_FAILED ="网格刷新失败。";
    var LOCID_ALT_COLUMNSORTORDER_DOWN ="数据按降序存储在该列中";
    var LOCID_ALT_COLUMNSORTORDER_UP ="数据按升序存储在该列中";
        /*
        自定义排序
    */
    var LOCID_VARIABLE_FILTER="flipv()";//刷新前状态
    var LOCID_VARIABLE_FIELDNAME="";//所选列列名
    var LOCID_VARIABLE_FIELD="";//排序字段
    var LOCID_VARIABLE_LEVEL="";//排序级别
    var LOCID_VARIABLE_OLDFIELDNAME="";

    var WEB_APP_URL = "";
    var HELP_SKU = "OP";
    var _saveAndNewEnabled = true;
    var IS_LIVE = false;
    var IS_PATHBASEDURLS = true;
    var ORG_UNIQUE_NAME = "webs";
    var _ErrorCodesIsvAborted = "0x80040265";
    var ScriptErrorReportingPreference = 1;
    var ScriptErrorStatusBar = "\u7f51\u9875\u4e0a\u6709\u9519\u8bef\u3002";
    var _bPresenceEnabled = true;
    var ORG_DATE_FORMATSTRING = "yyyy\x2fM\x2fd";
    var ORG_IS_GREGORIANCALENDAR = false;
    var ORG_DATE_SEPARATOR = "-";
    var ORG_DATE_START_DAY = 0;
    var ORG_LANGUAGE_CODE = 2052;
    var ORG_NUMBER_FORMAT_MASK = "\x23,\x23\x230.\x2a\x3b\x7e\x23,\x23\x230.\x2a";
    var ORG_TIME_FORMAT = 0;
    var ORG_SHOW_WEEK_NUMBER = false;
    var ORG_NUMBER_DECIMAL_SEPARATOR = ".";
    var ORG_NUMBER_GROUP_SEPARATOR = ",";
    var SERVER_URL = "http\x3a\x2f\x2fhaocer-qb\x3a5555\x2fhaocer";
    var AUTHENTICATION_TYPE = 0;
    var CRM2007_WEBSERVICE_NS = "http\x3a\x2f\x2fschemas.microsoft.com\x2fcrm\x2f2007\x2fWebServices";
    var CRM2007_CORETYPES_NS = "http\x3a\x2f\x2fschemas.microsoft.com\x2fcrm\x2f2007\x2fCoreTypes";
    var ORG_TIMEZONE_OFFSET = 480;
    var USER_IS_GREGORIANCALENDAR = true;
    var USER_DATE_FORMATTED_FORMATSTRING = "yyyy\x2fM\x2fd";
    var DEFAULT_USER_NUMBER_FORMAT_MASK = "\x23,\x23\x230.\x2a\x3b\x7e\x23,\x23\x230.\x2a";
    var USER_LANGUAGE_CODE = 2052;
    var USER_HELP_LCID = "2052";
    var USER_NUMBER_DECIMAL_SEPARATOR = ".";
    var USER_NUMBER_GROUP_SEPARATOR = ",";
    var HELP_SERVER_URL = "";
    </script>

    <script type="text/javascript" src="../_static/_common/scripts/encodedecode.js"></script>

    <script type="text/javascript" src="../_static/_controls/util/util.js"></script>

    <script type="text/javascript" src="../_static/_common/scripts/global.js"></script>

    <script type="text/javascript" src="../_static/_common/scripts/xmlutil.js"></script>

    <script type="text/javascript" src="../_static/_controls/remotecommands/remotecommand.js"></script>

    <script type="text/javascript" src="../_common/windowinformation/windowinformation.js"></script>

    <script type="text/javascript" src="../_static/_controls/lookup/lookupdialogsappgrid.js"></script>

    <script type="text/javascript" src="../_static/_forms/addrelated.js"></script>

    <script type="text/javascript" src="../_static/_common/scripts/details.js"></script>

    <script type="text/javascript" src="../_static/_common/scripts/select.js"></script>

    <script type="text/javascript" src="../_static/_common/scripts/presence.js"></script>

    <script type="text/javascript" src="../_static/_controls/number/number.js"></script>

    <script type="text/javascript" src="../_static/_controls/lookup/lookup.js"></script>

    <script type="text/javascript" src="../_static/_grid/action.js"></script>
    
    <script type="text/javascript" src="../_static/_controls/datetime/date.js"></script>

    <script type="text/javascript" src="../_static/_jQuery/jquery-1.3.2.min.js"></script>

    <script type="text/javascript" src="../_static/_jQuery/jquery_validator.js"></script>

    <script language="javascript" src="../_static/_jQuery/jquery_json.js" type="text/javascript"></script>

    <script language="javascript" src="../_static/_jQuery/jquery_stringutil.js" type="text/javascript"></script>

    <link rel="stylesheet" type="text/css" href="../_common/styles/global.css" />
    <link rel="stylesheet" type="text/css" href="../_common/styles/global-styles.css" />
    <link rel="stylesheet" type="text/css" href="../_common/styles/global-dynamic-styles.css" />
    <link rel="stylesheet" type="text/css" href="../_common/styles/fonts.css" />
    <link rel="stylesheet" type="text/css" href="../_common/styles/select.css" />
    <link rel="stylesheet" type="text/css" href="../_common/styles/minical.css" />
    <link rel="stylesheet" type="text/css" href="../_forms/controls/controls.css" />
    <link rel="stylesheet" type="text/css" href="../_forms/controls/form.css" />
    <link rel="stylesheet" type="text/css" href="../_common/styles/dialogs.css" />
    <link rel="stylesheet" type="text/css" href="../_nav/tabs.css" />

    <script type="text/javascript">
    function LocalDateTimeNow() 
    {
        var dNow = new Date();
        dNow.setMinutes(dNow.getMinutes() + (dNow.getTimezoneOffset()) + ORG_TIMEZONE_OFFSET);
        return dNow; 
    }
    function cancel()
    {
        window.close(); 
    }
    $(document).ready(setup);
    function setup()
    { 
        validator.setup("#crmForm"); 
    } 
    </script>

</head>
<body>

    <script type="text/javascript">
    <!--
    function __doPostBack(eventTarget, eventArgument) {
        var theForm = document.forms["crmForm"];
        if (!theForm) {
            theForm = document.crmForm;
        }
        if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
            theForm.__EVENTTARGET.value = eventTarget;
            theForm.__EVENTARGUMENT.value = eventArgument;
            theForm.submit();
        }
    }
    // -->
    </script>

    <div id="success" style="position: absolute; z-index: 300; height: 130px; width: 284px;
        left: 50%; top: 50%; margin-left: -150px; margin-top: -80px;">
        <div style="position: absolute; z-index: 300; width: 270px; height: 90px; background-color: #FFFFFF;
            border: solid #6699CC 1px; font-size: 14px;">
            <div style="font-weight: bolder; border-bottom: #6893cf 1px solid; background-image: url(../_imgs/gridtoolbar_back.gif);
                overflow: hidden; width: 100%; color: #000099; background-repeat: repeat-x; height: 26px;
                text-align: center;">
            </div>
            <div style="height: 64px; line-height: 150%; padding: 0px 3px 0px 3px;" align="center">
                <br />
                <table>
                    <tr>
                        <td valign="top">
                            <img border="0" src="../_imgs/AdvFind/progress.gif" />
                        </td>
                        <td valign="middle" style="font-size: 14px; width: 150px;">
                            loading ...<br />
                        </td>
                    </tr>
                </table>
                <br />
            </div>
        </div>
        <div id="Layer3" style="position: absolute; width: 270px; height: 108px; z-index: 299;
            left: 4px; top: 5px; background-color: #E8E8E8; border: #E8E8E8 1px solid; display: none;">
        </div>
    </div>

    <script type="text/javascript"> 
        document.getElementById("success").style.display = "none"; 
    </script>

    <script src="../_static/_common/scripts/divcover.js" type="text/javascript"></script>

    <form id="crmForm" runat="server">
    <input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
    <input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" /> 
    <table style="width: 100%; height: 100%;" cellspacing="0" cellpadding="0">
        <tr>
            <td class="ms-crm-Dialog-Header">
                <div class="ms-crm-Dialog-Header-Title" id="DlgHdTitle">
                    Customer Manage
                </div>
                <div class="ms-crm-Dialog-Header-Desc" id="DlgHdDesc">
                    <%=PageTitle %>
                </div>
            </td>
        </tr>
        <tr>
            <td style="height: 100%;">
                <div class="ms-crm-Dialog-Main">
                    <div id="divWarning">
                        <table class="stdTable" cellspacing="0" cellpadding="0">
                            <tbody>
                                <tr>
                                    <td>
                                        <div class="ms-crm-Form-Area">
                                            <div class="ms-crm-Tab1">
                                                <table style="table-layout: fixed" cellspacing="3" cellpadding="1" width="100%">
                                                    <colgroup>
                                                        <col width="155" />
                                                        <col />
                                                    </colgroup>
                                                    <tbody>
                                                        <tr valign="top">
                                                            <td class="ms-crm-Field-Normal">
                                                                <label for="txtCustomerName">
                                                                    Name:<img alt="required" src="../_imgs/frm_required.gif" /></label>
                                                            </td>
                                                            <td>
                                                                <input id="txtCustomerName" class="ms-crm-Text" runat="server" required="required" controlname="" isvalidator />
                                                            </td>
                                                        </tr>
                                                        <tr valign="top">
                                                            <td class="ms-crm-Field-Normal">
                                                                <label for="txtPhone">
                                                                    Phone:</label>
                                                            </td>
                                                            <td>
                                                                <input id="txtPhone" class="ms-crm-Text" style="width: 200px;" runat="server" />
                                                            </td>
                                                        </tr>
                                                        <tr valign="top">
                                                            <td class="ms-crm-Field-Required">
                                                                <label for="txtEmail">
                                                                    Email:</label>
                                                            </td>
                                                            <td>
                                                                <input id="txtEmail" class="ms-crm-Text" style="width: 200px;" runat="server" />
                                                            </td>
                                                        </tr>
                                                        <tr valign="top">
                                                            <td class="ms-crm-Field-Required">
                                                                <label for="txtEmail">
                                                                    Contactperson:</label>
                                                            </td>
                                                            <td>
                                                                <input id="txtContactperson" class="ms-crm-Text" style="width: 150px;" runat="server" />
                                                            </td>
                                                        </tr> 
                                                        <tr valign="top">
                                                            <td class="ms-crm-Field-Required">
                                                                <label for="txtEmail">
                                                                    Contactperson Phone:</label>
                                                            </td>
                                                            <td>
                                                                <input id="txtContactpersonPhone" class="ms-crm-Text" style="width: 150px;" runat="server" />
                                                            </td>
                                                        </tr> 
                                                        <tr valign="top">
                                                            <td class="ms-crm-Field-Required">
                                                                <label for="txtDescription">
                                                                    Description:</label>
                                                            </td>
                                                            <td>
                                                                <textarea id="txtDescription" runat="server" rows="4"></textarea>
                                                            </td>
                                                        </tr>
                                                    </tbody>
                                                </table>
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </td>
        </tr>
        <tr>
            <td class="ms-crm-Dialog-Footer" id="tdDialogFooter">
                <table cellspacing="0" cellpadding="0" style="width: 100%; table-layout: fixed;">
                    <tbody>
                        <tr>
                            <td style="text-align: right;">
                                <button style="width: 100px; margin-right: 10px;" class="ms-crm-Button" id="btnSave1"
                                    onclick="if(validator.validatorAll()){this.disabled=true;success.style.display = 'block';HideOverSels('success');__doPostBack('save','saveandnew');}">
                                    Save And Add new</button>
                                <button class="ms-crm-Button" id="btnSave2" onclick="if(validator.validatorAll()){this.disabled=true;success.style.display = 'block';HideOverSels('success');__doPostBack('save','saveandclose');}">
                                    Save</button>
                                <input class="btn" id="Button1" type="button" runat="server" onclick="cancel();"
                                    value="Cancel" style="width: 100px; margin-left: 10px;" />
                            </td>
                        </tr>
                    </tbody>
                </table>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
